package com.glory.dgcpcpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.dgcpcpda.R;
import com.glory.dgcpcpda.entity.AlarmInfo;
import com.glory.dgcpcpda.entity.MaterielListEntity;

import java.util.List;

public class CpcAlarmInfoAdapter extends BaseQuickAdapter<AlarmInfo, BaseViewHolder> {
    public CpcAlarmInfoAdapter(@Nullable List<AlarmInfo> data) {
        super(R.layout.alarm_info_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AlarmInfo item) {
        helper.setText(R.id.tvCode,item.getAlarmId());
        helper.setText(R.id.tvAlarmInfo,item.getAlarmContent());
        helper.setText(R.id.tvAlarmInfoDesc,item.getAlarmTranslation());

    }
}
